import {httpGet, httpPost} from '@/utils/request'

// 创建充值订单请求
export const createCharge = async (params: {}, config?: {}) => {
  await httpPost('user/finance/createCharge', params, config)
}

// 	用户银行卡创建请求
export const bankCreate = async (params: {}, config?: {}) => {
  await httpPost('user/finance/bankCreate', params, config)
}

// 加密货币列表请求
export const cryptoList = async (params: {}, config?: {}) => {
  await httpPost('user/finance/cryptoList', params, config)
}

// 加密货币更改请求
export const cryptoEdit = async (params: {}, config?: {}) => {
  await httpPost('user/finance/cryptoEdit', params, config)
}

// 加密货币地址创建请求
export const cryptoCreate = async (params: {}, config?: {}) => {
  await httpPost('user/finance/cryptoCreate', params, config)
}

// 创建提款
export const createWithdraw = async (params: {}, config?: {}) => {
  await httpPost('user/finance/createWithdraw', params, config)
}

// 获取银行卡列表
export const bankList = async (params: {}, config?: {}) => {
  await httpPost('user/finance/bankList', params, config)
}

// 银行卡修改
export const bankEdit = async (params: {}, config?: {}) => {
  await httpPost('user/finance/bankEdit', params, config)
}
